package com.zhuiyun.project.api.system.user.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName SysUserRoleModel
 * @Description TODO
 * @Author hbx
 * @Date 2023/6/16 10:14
 **/
@ApiModel("用户角色关联模型类")
@Data
public class SysUserRoleModel {
    /**
     * @Author hbx
     * @Description 用户id
     * @Date 2023/6/16 10:12
     * @param null
     */
    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    private Integer userId;

    /**
     * @Author hbx
     * @Description 角色id
     * @Date 2023/6/16 10:14
     * @param null
     */
    @NotBlank(message = "角色id不能为空")
    @ApiModelProperty("角色id")
    private Integer roleId;
}
